package com.lipaluma.example.clients.dao.utils;
 
import java.util.List;
import java.util.Map;
 
public interface IDao<TYPE> {
    public TYPE persist(TYPE item);
    
    public TYPE update(TYPE item);
    
    public List<TYPE> getAll();
    
    public TYPE getById(Long id);
 
    public void delete(TYPE item);
 
    public List<TYPE> findByAttributes(Map<String, String> attributes);
}